
//user.route.js
const Router = require('koa-router')
const {register,login,baidu_map} =require('../controller/user.controller')



const router = new Router({prefix:'/users'})

// router.get('/',(ctx,next)=>{
//   ctx.body = 'hello users'
// })

// 注册接口
router.post('/register',register)

// 登录接口
router.get('/login',login)

// 百度地图接口
router.get('/baidu_map',baidu_map)


// 测试
// http://localhost:8000/users/register
// http://localhost:8000/users/login


module.exports = router